import 'package:flutter/material.dart';

class BasePage extends StatelessWidget {
  String title = "Page";

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
        leading: IconButton(
          icon: Icon(Icons.arrow_back),
          onPressed: (){
            Navigator.of(context).pop();
          },
        ),
      ),
      body: rebuild(context),
    );
  }

  @mustCallSuper
  Widget rebuild(BuildContext context){
    
    return Container(
      child: Text("casdfasd"),
    );
  }
}
